CXX=g++
CXXFLAGS=-g -O3 -ffast-math -Wall -I ~/usr/includes/irrlicht -I ../include -Igraph -Iway2go
CXXLIBS=-L ~/usr/lib -lIrrlicht -lGL -lGLU -lXxf86vm -L ../lib
CXX_WINLIBS=-L ../lib -lIrrlicht

OBJECTS=Exception.o debug.o World.o Entity.o AnimatedEntity.o StaticEntity.o LivingEntity.o PlayerEntity.o Map.o InputReceiver.o bdi-quest.o bspent.o stringSeparator.o Memory.o Hostility.o NPCEntity.o Message.o Desires.o PostOffice.o Action.o ActionMove.o ActionAttack.o ActionTurn.o ActionEat.o ActionPatrol.o ActionTurnAround.o Plan.o ActionDie.o ActionFlee.o zone.o segment.o Steering.o ItemGenerator.o ActionGetItem.o ActionSleep.o ActionHunt.o

all: bdi-quest

win: $(OBJECTS)
	$(CXX) $(OBJECTS) $(CXX_WINLIBS) -o bdi-quest.exe

bdi-quest: $(OBJECTS)
	$(CXX) $(OBJECTS) $(CXXLIBS) -o bdi-quest

clean:
	rm -f *.o

distclean: clean
	rm -f bdi-quest

